﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class Animal
    {
        private int leg;
        public int Leg { get; set; }

        public void Eat() 
        {
            Console.WriteLine("我要用膳");
        }
        public void Walk() 
        {
            Console.WriteLine("我健步如飞");
        }

        public void Sleep() 
        {
            Console.WriteLine("我要就寝");
        }

        public virtual void Cry() 
        {
            Console.WriteLine("我能叫");
        }
    }
}
